package com.jokey.vue.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2021/11/25 20:36
 * @version: v1.0.0
 * <p>职位表</p>
 */
@Data
@NoArgsConstructor
@TableName(value = "position", autoResultMap = true)
public class Position implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 职位
     */
    private String name;

    /**
     * 创建日期
     */
    private LocalDate createDate;

    /**
     * 是否可用 0-不可用 1-可用
     */
    private Boolean enabled;

    public Position(String name) {
        this.name = name;
    }
}
